//global css
import '@/assets/styles/index.scss'
//icon
import '@/icons'
//element-ui
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//mavonEditor
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

//normalize.css
import 'normalize.css/normalize.css'
//v-viewer
// import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'
import Vue from 'vue'
import App from './App.vue'

//moment
import './plugins/dateFormatFilter'
import router from './router'
import store from './store'

Vue.config.productionTip = false

Vue.use(mavonEditor)
Vue.use(Element)
Vue.use(Viewer)

Vue.prototype.msgSuccess = function (msg) {
  this.$message.success(msg)
}

Vue.prototype.msgError = function (msg) {
  this.$message.error(msg)
}

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
